const menuDefinition = [
	{
		name: '文件',
		children: [
			{
				name: '新建画布',
				target: 'file/new.new'
			},
			{
				name: '打开文件',
				shortcut: 'O',
				ellipsis: true,
				target: 'file/open.open_file'
			},
			{
				divider: true
			},
			{
				name: '另存为',
				ellipsis: true,
				shortcut: 'S',
				target: 'file/save.export'
			},
			// {
			// 	name: '另存为JSON',
			// 	ellipsis: true,
			// 	shortcut: 'Shift + S',
			// 	target: 'file/save.save'
			// },
			// {
			// 	name: '另存为Base64',
			// 	ellipsis: true,
			// 	target: 'file/save.save_data_url'
			// },
			{
				name: '打印',
				shortcut: 'Ctrl+P',
				target: 'file/print.print'
			},
		]
	},
	{
		name: '编辑',
		children: [
			{
				name: '撤销',
				shortcut: 'Ctrl+Z',
				target: 'edit/undo.undo'
			},
			{
				name: '恢复',
				shortcut: 'Ctrl+Y',
				target: 'edit/redo.redo'
			},
			{
				divider: true
			},
			{
				name: '删除选区',
				shortcut: 'Del',
				target: 'edit/selection.delete'
			},
			{
				name: '复制选区',
				target: 'layer/new.new_selection'
			},
			{
				name: '复制到剪切板',
				shortcut: 'Ctrl+C',
				target: 'edit/copy.copy_to_clipboard'
			},
			{
				name: '粘贴',
				shortcut: 'Ctrl+V',
				target: 'edit/paste.paste'
			},
			{
				divider: true
			},
			{
				name: '全选',
				shortcut: 'Ctrl+A',
				target: 'edit/selection.select_all'
			}
		]
	},
	{
		name: '视图',
		children: [
			{
				name: '缩放',
				children: [
					{
						name: '放大',
						target: 'view/zoom.in'
					},
					{
						name: '缩小',
						target: 'view/zoom.out'
					},
					{
						divider: true
					},
					{
						name: '原始尺寸',
						target: 'view/zoom.original'
					},
					{
						name: '适应窗口',
						target: 'view/zoom.auto'
					}
				]
			},
			{
				name: '网格',
				shortcut: 'G',
				target: 'view/grid.grid'
			},
			{
				name: '参考线',
				children: [
					{
						name: '插入',
						ellipsis: true,
						target: 'view/guides.insert'
					},
					{
						name: '更新',
						target: 'view/guides.update'
					},
					{
						name: '移除全部',
						target: 'view/guides.remove'
					}
				]
			},
			{
				name: '标尺',
				target: 'view/ruler.ruler'
			},
			{
				divider: true
			},
			{
				name: '全屏',
				target: 'view/full_screen.fs'
			}
		]
	},
	{
		name: '图片',
		children: [
			{
				name: '信息',
				shortcut: 'I',
				ellipsis: true,
				target: 'image/information.information'
			},
			{
				name: '画布尺寸',
				ellipsis: true,
				target: 'image/size.size'
			},
			{
				name: '修剪',
				ellipsis: true,
				shortcut: 'T',
				target: 'image/trim.trim'
			},
			{
				divider: true
			},
			{
				name: '调整尺寸',
				ellipsis: true,
				shortcut: 'R',
				target: 'image/resize.resize'
			},
			{
				name: '旋转',
				ellipsis: true,
				target: 'image/rotate.rotate'
			},
			{
				name: '翻转',
				children: [
					{
						name: '垂直',
						target: 'image/flip.vertical'
					},
					{
						name: '水平',
						target: 'image/flip.horizontal'
					}
				]
			},
			{
				name: '移动',
				ellipsis: true,
				target: 'image/translate.translate'
			},
			{
				name: '透明度',
				ellipsis: true,
				target: 'image/opacity.opacity'
			},
			{
				divider: true
			},
			{
				name: '颜色调整',
				ellipsis: true,
				target: 'image/color_corrections.color_corrections'
			},
			{
				name: '自动调整颜色',
				shortcut: 'F',
				target: 'image/auto_adjust.auto_adjust'
			},
			{
				name: '减少颜色深度',
				target: 'image/decrease_colors.decrease_colors'
			},
			{
				name: '画布颜色属性',
				ellipsis: true,
				target: 'image/palette.palette'
			},
			{
				divider: true
			},
			{
				name: '直方图',
				ellipsis: true,
				target: 'image/histogram.histogram'
			}
		]
	},
	{
		name: '图层',
		children: [
			{
				name: '新建',
				shortcut: 'N',
				target: 'layer/new.new'
			},
			{
				name: '将选区新建图层',
				target: 'layer/new.new_selection'
			},
			{
				divider: true
			},
			{
				name: '复制图层',
				shortcut: 'D',
				target: 'layer/duplicate.duplicate'
			},
			{
				name: '显示 / 隐藏',
				target: 'layer/visibility.toggle'
			},
			{
				name: '删除',
				target: 'layer/delete.delete'
			},
			{
				name: '将图层转为图片',
				target: 'layer/raster.raster'
			},
			{
				divider: true
			},
			{
				name: '移动',
				children: [
					{
						name: '上移',
						target: 'layer/move.up'
					},
					{
						name: '下移',
						target: 'layer/move.down'
					}
				]
			},
			{
				name: 'Composition',
				ellipsis: true,
				target: 'layer/composition.composition'
			},
			{
				name: '重命名',
				ellipsis: true,
				target: 'layer/rename.rename'
			},
			// {
			// 	name: '清空',
			// 	target: 'layer/clear.clear'
			// },
			// {
			// 	divider: true
			// },
			// {
			// 	name: '差异对比',
			// 	target: 'layer/differences.differences'
			// },
			// {
			// 	name: '合并图层',
			// 	target: 'layer/merge.merge'
			// },
			// {
			// 	name: '拼合图层',
			// 	target: 'layer/flatten.flatten'
			// }
		]
	},
	{
		name: '效果',
		children: [
			{
				name: '全部效果总览',
				ellipsis: true,
				target: 'effects/browser.browser'
			},
			{
				divider: true
			},
			{
				name: '常用过滤器',
				children: [
					{
						name: '高斯模糊',
						ellipsis: true,
						target: 'effects/common/blur.blur'
					},
					{
						name: '亮度',
						ellipsis: true,
						target: 'effects/common/brightness.brightness'
					},
					{
						name: '对比度',
						ellipsis: true,
						target: 'effects/common/contrast.contrast'
					},
					{
						name: '灰度',
						ellipsis: true,
						target: 'effects/common/grayscale.grayscale'
					},
					{
						name: '色像旋转',
						ellipsis: true,
						target: 'effects/common/hue-rotate.hue_rotate'
					},
					{
						name: '反转',
						ellipsis: true,
						target: 'effects/common/invert.invert'
					},
					{
						name: '饱和度',
						ellipsis: true,
						target: 'effects/common/saturate.saturate'
					},
					{
						name: '褐色化',
						ellipsis: true,
						target: 'effects/common/sepia.sepia'
					},
					{
						name: '阴影',
						ellipsis: true,
						target: 'effects/common/shadow.shadow'
					},
				]
			},
			{
				name: '照片滤镜',
				children: [
					{
						name: '1977',
						target: 'effects/instagram/1977.1977'
					},
					{
						name: 'Aden',
						target: 'effects/instagram/aden.aden'
					},
					{
						name: 'Clarendon',
						target: 'effects/instagram/clarendon.clarendon'
					},
					{
						name: 'Gingham',
						target: 'effects/instagram/gingham.gingham'
					},
					{
						name: 'Inkwell',
						target: 'effects/instagram/inkwell.inkwell'
					},
					{
						name: 'Lo-fi',
						target: 'effects/instagram/lofi.lofi'
					},
					{
						name: 'Toaster',
						target: 'effects/instagram/toaster.toaster'
					},
					{
						name: 'Valencia',
						target: 'effects/instagram/valencia.valencia'
					},
					{
						name: 'X-Pro II',
						target: 'effects/instagram/xpro2.xpro2'
					}
				]
			},
			{
				name: '黑白化',
				ellipsis: true,
				target: 'effects/black_and_white.black_and_white'
			},
			{
				name: '边框',
				ellipsis: true,
				target: 'effects/borders.borders'
			},
			{
				name: '蓝图',
				target: 'effects/blueprint.blueprint'
			},
			{
				name: '盒模糊',
				ellipsis: true,
				target: 'effects/box_blur.box_blur'
			},
			{
				name: '降噪',
				ellipsis: true,
				target: 'effects/denoise.denoise'
			},
			{
				name: '抖动',
				ellipsis: true,
				target: 'effects/dither.dither'
			},
			{
				name: '点状格栅',
				ellipsis: true,
				target: 'effects/dot_screen.dot_screen'
			},
			{
				name: '线条化',
				target: 'effects/edge.edge'
			},
			{
				name: '浮雕',
				target: 'effects/emboss.emboss'
			},
			{
				name: '昏暗',
				ellipsis: true,
				target: 'effects/enrich.enrich'
			},
			{
				name: '噪点',
				ellipsis: true,
				target: 'effects/grains.grains'
			},
			{
				name: '热力图',
				target: 'effects/heatmap.heatmap'
			},
			{
				name: '马赛克',
				ellipsis: true,
				target: 'effects/mosaic.mosaic'
			},
			{
				name: '夜视',
				target: 'effects/night_vision.night_vision'
			},
			{
				name: '油画',
				ellipsis: true,
				target: 'effects/oil.oil'
			},
			{
				name: '素描',
				target: 'effects/pencil.pencil'
			},
			{
				name: '锐化',
				ellipsis: true,
				target: 'effects/sharpen.sharpen'
			},
			{
				name: '负片',
				target: 'effects/solarize.solarize'
			},
			{
				name: '聚焦',
				ellipsis: true,
				target: 'effects/tilt_shift.tilt_shift'
			},
			{
				name: '晕影',
				ellipsis: true,
				target: 'effects/vignette.vignette'
			},
			{
				name: '饱和度',
				ellipsis: true,
				target: 'effects/vibrance.vibrance'
			},
			{
				name: '灰尘',
				ellipsis: true,
				target: 'effects/vintage.vintage'
			},
			{
				name: '变焦模糊',
				ellipsis: true,
				target: 'effects/zoom_blur.zoom_blur'
			}
		]
	},
	// {
	// 	name: 'Tools',
	// 	children: [
	// 		{
	// 			name: 'Sprites',
	// 			target: 'tools/sprites.sprites'
	// 		},
	// 		{
	// 			name: 'Key-Points',
	// 			target: 'tools/keypoints.keypoints'
	// 		},
	// 		{
	// 			name: 'Content Fill',
	// 			ellipsis: true,
	// 			target: 'tools/content_fill.content_fill'
	// 		},
	// 		{
	// 			divider: true
	// 		},
	// 		{
	// 			name: 'Color Zoom',
	// 			ellipsis: true,
	// 			target: 'tools/color_zoom.color_zoom'
	// 		},
	// 		{
	// 			name: 'Replace Color',
	// 			ellipsis: true,
	// 			target: 'tools/replace_color.replace_color'
	// 		},
	// 		{
	// 			name: 'Restore Alpha',
	// 			ellipsis: true,
	// 			target: 'tools/restore_alpha.restore_alpha'
	// 		},
	// 		{
	// 			name: 'External',
	// 			children: [
	// 				{
	// 					name: 'TINYPNG - Compress PNG and JPEG',
	// 					href: 'https://tinypng.com'
	// 				},
	// 				{
	// 					name: 'REMOVE.BG - Remove Image Background',
	// 					href: 'https://www.remove.bg'
	// 				},
	// 				{
	// 					name: 'PNGTOSVG - Convert Image to SVG',
	// 					href: 'https://www.pngtosvg.com'
	// 				},
	// 				{
	// 					name: 'SQUOOSH - Compress and Compare Images',
	// 					href: 'https://squoosh.app'
	// 				}
	// 			]
	// 		},
	// 		{
	// 			divider: true
	// 		},
	// 		{
	// 			name: 'Language',
	// 			children: [
	// 				{
	// 					name: 'English',
	// 					target: 'tools/translate.translate',
	// 					parameter: 'en',
	// 				},
	// 				{
	// 					divider: true
	// 				},
	// 				{
	// 					//Arabic
	// 					name: 'عربي',
	// 					target: 'tools/translate.translate',
	// 					parameter: 'ar',
	// 				},
	// 				{
	// 					//Chinese simplified
	// 					name: '简体中文',
	// 					target: 'tools/translate.translate',
	// 					parameter: 'zh',
	// 				},
	// 				{
	// 					name: 'Deutsch',
	// 					target: 'tools/translate.translate',
	// 					parameter: 'de',
	// 				},
	// 				{
	// 					name: 'Dutch',
	// 					target: 'tools/translate.translate',
	// 					parameter: 'nl',
	// 				},
	// 				{
	// 					name: 'English (UK)',
	// 					target: 'tools/translate.translate',
	// 					parameter: 'uk',
	// 				},
	// 				{
	// 					name: 'Español',
	// 					target: 'tools/translate.translate',
	// 					parameter: 'es',
	// 				},
	// 				{
	// 					name: 'Français',
	// 					target: 'tools/translate.translate',
	// 					parameter: 'fr',
	// 				},
	// 				{
	// 					name: 'Greek',
	// 					target: 'tools/translate.translate',
	// 					parameter: 'el',
	// 				},
	// 				{
	// 					name: 'Italiano',
	// 					target: 'tools/translate.translate',
	// 					parameter: 'it',
	// 				},
	// 				{
	// 					//Japanese
	// 					name: '日本語',
	// 					target: 'tools/translate.translate',
	// 					parameter: 'ja',
	// 				},
	// 				{
	// 					//Korean
	// 					name: '한국어',
	// 					target: 'tools/translate.translate',
	// 					parameter: 'ko',
	// 				},
	// 				{
	// 					name: 'Lietuvių',
	// 					target: 'tools/translate.translate',
	// 					parameter: 'lt',
	// 				},
	// 				{
	// 					name: 'Português',
	// 					target: 'tools/translate.translate',
	// 					parameter: 'pt',
	// 				},
	// 				{
	// 					name: 'русский язык',
	// 					target: 'tools/translate.translate',
	// 					parameter: 'ru',
	// 				},
	// 				{
	// 					name: 'Türkçe',
	// 					target: 'tools/translate.translate',
	// 					parameter: 'tr',
	// 				}
	// 			]
	// 		},
	// 		{
	// 			name: 'Search',
	// 			shortcut: 'F3',
	// 			ellipsis: true,
	// 			target: 'tools/search.search'
	// 		},
	// 		{
	// 			name: 'Settings',
	// 			ellipsis: true,
	// 			target: 'tools/settings.settings'
	// 		}
	// 	]
	// },
	// {
	// 	name: 'Help',
	// 	children: [
	// 		{
	// 			name: 'Keyboard Shortcuts',
	// 			ellipsis: true,
	// 			target: 'help/shortcuts.shortcuts'
	// 		},
	// 	]
	// }
];


export default menuDefinition;